package jdtoextension;

import java.util.ArrayList;
import java.util.List;

import com.juancavallotti.jdto.SinglePropertyValueMerger;


/**
 */
public class ListPropertyMergerString implements SinglePropertyValueMerger<List<String>, List<Object>> {

    @Override
    public List<String> mergeObjects(final List<Object> values, final String extraParam) {
        List<String> result = new ArrayList<String>();
        for (Object obj : values) {
            result.add(obj.toString());
        }
        return result;
    }
}
